<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>设备信息</title>
<jsp:include page="../common/header-common.jsp"></jsp:include>
<script type="text/javascript">
function confirmSubmit(){
		document.forms[0].submit();
	}
</script>
</head>
<body>
  <jsp:include page="menu.jsp"></jsp:include>
<s:form action="/admin/magazineSave.action" theme="simple" method="POST" enctype="multipart/form-data">
<div class="content">
	<div class="pagetitle">>>杂志</div>
	<div id="btn_left">
	<ul>
		<li><a href="#" onclick="confirmSubmit();"><span><img src="../images/bt_submit.gif"  align='absmiddle'/></span></a></li>
	</ul>
	</div>
	<s:if test="message != null">
		<div class="return_tip">
			<s:property value="message" />
		</div>
	</s:if>
	<table class="tablecolor2" width="100%" align="center">
		<s:hidden name="magazine.id"></s:hidden>
		<input type="hidden" name="magazineID" value="<s:property value="magazine.id" />" />
		<tr align="left">
			<td align="right" width="15%">名称:</td>
			<td align="left"><s:textfield name="magazine.name" /></td>
		</tr>
		<tr align="left">
			<td align="right" width="15%">一级类型:</td>
			<td align="left">
					<s:if test="firstType == 1">学术期刊</s:if>
					<s:if test="firstType == 2">在线杂志</s:if>
					<input type="hidden" name="magazine.firstType" value="<s:property value="firstType" />" />
					<s:hidden name="firstType"></s:hidden>
			</td>
		</tr>
		<tr align="left">
			<td align="right" width="15%">二级类型:</td>
			<td align="left">
				<SELECT name="magazine.secondType" value="<s:property value="secondType" />"  >
					<s:if test="firstType == 1">
						<option value="1">女性</option>
						<option value="2">男性</option>
					</s:if>
					<s:if test="firstType == 2">
						<option value="1">在线杂志1</option>
						<option value="2">在线杂志2</option>
					</s:if>
				</SELECT>
			</td>
		</tr>
		<tr align="left">
			<td align="right" width="15%">封面图片(无需修改则留空):</td>
			<td align="left">
				<input type="file" name="upload" />
			</td>
		</tr>
		<tr align="left">
			<td align="right" width="15%">创建时间:</td>
			<td align="left"><s:textfield name="device.createTime"  readonly="true" /></td>
		</tr>
	</table>
</div>
</s:form>
<jsp:include page="../common/footer.jsp" />
</body>
</html>